package srcBlackJack;

public class ActionMapElem 
{
    BlackJackState nextState;
    double probability;
    int reward;
    
    public ActionMapElem(
            BlackJackState nextState,
            double probability,
            int reward) 
    {
        this.nextState = nextState;
        this.probability = probability;
        this.reward = reward;
    }

    public BlackJackState NextState() {
        return nextState;
    }

    public double Probability() {
        return probability;
    }

    public int Reward() {
        return reward;
    }

    @Override
    public String toString() {
        return String.format(
                "ActionMapElem [nextState=%s, probability=%s, reward=%s]",
                nextState, probability, reward);
    }
}
